// 维护公共布局左侧菜单数据
//  menuList => 1.静态菜单  2.根据权限点的动态路由菜单

// 导入静态菜单数据
import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: [] // 菜单列表数据
  },

  mutations: { // payload 动态路由
    setMenuList (state, payload) {
      state.menuList = [...constantRoutes, ...payload]
    }
  }

}
